home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
NEWTEXTF
/
SOURCE_C
/
HANDLETO.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-09-10
|
271b
|
13 lines
#include "MyLibrary.h"
ResType HandleToResType (Handle hndl)
{ResType theType;
if (hndl == (Handle) 0 || !(GetHandleSize (hndl)))
return (' ');
MoveHHi (hndl);
HLock (hndl);
theType = CToResType (*hndl);
HUnlock (hndl);
return (theType);}